package com.zjpg.forum.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Article {
    private Long id;
    private Long boardId;
    private Long userId;
    private String title;
    private Integer visitCount;
    private Integer replyCount;
    private Integer likeCount;
    private Byte state;
    private Byte deleteState;
    private Date createTime;
    private Date updateTime;
    private String content;

    @ApiModelProperty("是否是作者")
    private Boolean author;

    // 用户属性
    private User user;

    // 板块属性
    private Board board;
}